<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditCargasTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditCargasLabel_idCarga}" for="idCarga" />
                    <h:inputText id="idCarga" value="#{cargasController.selected.idCarga}" title="#{bundle.EditCargasTitle_idCarga}" required="true" requiredMessage="#{bundle.EditCargasRequiredMessage_idCarga}"/>
                    <h:outputLabel value="#{bundle.EditCargasLabel_descripcion}" for="descripcion" />
                    <h:inputText id="descripcion" value="#{cargasController.selected.descripcion}" title="#{bundle.EditCargasTitle_descripcion}" />
                    <h:outputLabel value="#{bundle.EditCargasLabel_fletesIdFlete}" for="fletesIdFlete" />
                    <h:selectOneMenu id="fletesIdFlete" value="#{cargasController.selected.fletesIdFlete}" title="#{bundle.EditCargasTitle_fletesIdFlete}" required="true" requiredMessage="#{bundle.EditCargasRequiredMessage_fletesIdFlete}">
                        <f:selectItems value="#{fletesController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <h:commandLink action="#{cargasController.update}" value="#{bundle.EditCargasSaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditCargasViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{cargasController.prepareList}" value="#{bundle.EditCargasShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditCargasIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
